<%
//用户
var user = shiro.getUser();
var title  = '食药局申请';
layout("/inc/layout.html",{
title:title,
keywords:title,
description:title,
style:'user.css'
}){
%>
<section class="container">
<div class="row  mt15">
      <div class="wrapper wrapper-content">
            	<div class="panel panel-default">
		<div class="panel-heading">
			<b>食品经营许可证注销</b>
		</div>
		<div class="panel-body">
			     <div class="tabs-container" id="tabs-container">
                    <ul class="nav nav-tabs">
                        <li class="active"><a data-toggle="tab" href="#tab-1" aria-expanded="true"> 基本信息</a></li>
                        <li class=""><a data-toggle="tab" href="#tab-2" aria-expanded="false">审批日志</a></li>
                    </ul>
                    <div class="tab-content">

							<div id="tab-1" class="tab-pane active">
								<div class="panel-body col-sm-offset-1 col-sm-9">

									<div class="form-group">
										<label for="companyName" class="control-label-info pull-left">企业名称：</label>
										<div class="col-sm-10">
											<div class="input-group col-sm-6">
												<input id="companyName" name="companyName"
													class="form-control" type="text" value="${companyName}"
													disabled>
											</div>
										</div>
									</div>

									<div class="form-group">
										<label for="companyName" class="control-label-info pull-left">注销原因：</label>
										<div class="col-sm-10">
											<div class="input-group col-sm-6">
												<textarea id="cancelReason" name="cancelReason"
													class="form-control" rows="5" disabled>${cancelReason}</textarea>
											</div>
										</div>
									</div>

								</div>
							</div>
							
							     <div id="tab-2" class="tab-pane">
                            <div class="panel-body table-responsive">
                                <table class="table table-hover table-bordered">
                                    <thead>
                                    <tr>
                                        <th width="15%">审批时间</th>
                                        <th width="15%">审批人</th>
                                        <th width="10%">状态</th>
                                        <th width="60%">消息</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <%
                                    if(isNotEmpty(flowProcessList)){
                                    for(process in flowProcessList){
                                    %>
                                    <tr>
                                        <td class="text text-center">${process.updateTime,"yyyy-MM-dd HH:mm:ss"}</td>
                                        <td>${process.auditorNickName!'-'}</td>
                                        <td>${webUtil.companyItemStatus(process.auditStatus!0)}</td>
                                        <td>${process.message}</td>
                                    </tr>
                                    <%
                                    }
                                    }else{
                                    %>
                                    <tr>
                                        <td colspan="4" class="text-center text-muted">暂无数据</td>
                                    </tr>
                                    <%
                                    }
                                    %>
                                    </tbody>
                                </table>
                            </div>
                        </div>
							


						
						
						</div>
						</div>
						</div>
      <div class="panel-footer">
                <div class="col-sm-offset-3 clearfix">
                    <div class="mt5 mb5 block col-sm-3">
                        <a href="/user/transact" class="btn btn-warning btn-lg btn-outline btn-block">返回列表</a>
                    </div>
                </div>
        </div>
    </div>
</section>
<% } %>
<script>
    require(['modules/fooddrug_base'], function (fooddrugBase) {
    	fooddrugBase.info();
    });
</script>
</body>
</html>